String.prototype.trim = function () {
    return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.ltrim = function () {
    return this.replace(/(^\s*)/g, "");
}
String.prototype.rtrim = function () {
    return this.replace(/(\s*$)/g, "");
}

//param为传入参数
function mapProApproval(param){
  alert(param)
}

export default{
  install: function(Vue){
    Vue.prototype.global = (param)=>mapProApproval(param)
  }
}